package com.eugene.ui.viewerfilter;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;

import com.eugene.entity.Scenario;
import com.eugene.enums.EScenarioType;


public class HistoricalScenarioFilter extends ViewerFilter {
	public boolean select(Viewer viewer, Object parentElement, Object element) {
		String rst;
		if(element instanceof Scenario ){
			rst = ((Scenario)element).getSceId();
		}
		else rst = element.toString();
		return rst.contains("HS") || rst.contains("MC");
	}

}
